package com.jmitxy.controller;

import com.jmitxy.dao.MissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MissionController {

    @Resource
    private MissionMapper missionMapper;

    @GetMapping("/")
    public Object getAllMission()
    {
        return missionMapper.getAllMission();
    }
}
